const express = require('express')

const adminRouter = require('./routes/adminRouter')
const app = express();
// 设置接收post数据的类型
app.use(express.json())// application/json
// 管理员路由
app.use(adminRouter);
app.listen(7000,()=>{
    console.log('server run at 7000')
})
